package lab01;

public class Test13 {
    public static void main(String[] args) {
        int a;
        int b;
        int c;
        int sum;
        for (sum = 100; sum < 1000; sum++) {
            a = sum % 10;
            b = sum / 10 % 10;
            c = sum / 100 % 10;
            if (sum == a * a * a + b * b * b + c * c * c) {
                System.out.println("sum:" + sum);
            }
        }
    }
}
